package com.stm.bi.model;

import com.stm.framework.annotation.ReqParam;
import com.stm.framework.dto.PageQuery;
import com.stm.bi.enums.DateType;

/**
 * @Author chenyingjun
 * @Desc
 * @Date 2025/2/10 10:43
 */
public class DatatableQuery extends PageQuery {
    @ReqParam(label = "时间类型", required = true)
    protected DateType dateType;
    @ReqParam(label = "开始时间", required = true,note = "当时间dateType=YEAR时,startDate的格式为2025,当时间dateType=MONTH时,startDate的格式为2025-01")
    private String startDate;

    @ReqParam(label = "结束时间", required = true,note = "当时间dateType=YEAR时,endDate的格式为2025,当时间dateType=MONTH时,endDate的格式为2025-01")
    private String endDate;

    public String getStartDate() {
        return startDate;
    }

    public DatatableQuery setStartDate(String startDate) {
        this.startDate = startDate;
        return this;
    }

    public String getEndDate() {
        return endDate;
    }

    public DatatableQuery setEndDate(String endDate) {
        this.endDate = endDate;
        return this;
    }

    public DateType getDateType() {
        return dateType;
    }

    public DatatableQuery setDateType(DateType dateType) {
        this.dateType = dateType;
        return this;
    }
}
